package com.baijiayun.liveuibase.base

import android.view.ViewGroup
import android.widget.FrameLayout

/**
 * Created by pengwenjian on 2021/1/6
 * Describe:
 */
interface ILayer {
    /**
     * 添加window
     *
     * @param window
     */
    fun addWindow(window: IWindow?)


    /**
     * 添加window
     *
     * @param window
     * @param layoutParams
     */
    fun addWindow(window: IWindow?, layoutParams: FrameLayout.LayoutParams)

    /**
     * add window
     * @param window
     * @param layoutParams
     */
    fun addWindow(window: IWindow?, layoutParams: ViewGroup.LayoutParams)

    /**
     * 移除window
     *
     * @param window
     */
    fun removeWindow(window: IWindow?)

    /**
     * 获得layer的布局
     *
     * @return
     */
    fun getViewGroup(): ViewGroup?
}